package com.xuecheng.base.exception;
/**
 * Date:2023/7/7
 * Author:丐版小杨哥
 * Description:
 */
public class XueChengPlusException extends RuntimeException{
    String errMessage;
    public XueChengPlusException() {
        super();
    }
    public XueChengPlusException(String message) {
        super(message);
        this.errMessage=message;
    }
    public String getErrMessage() {
        return errMessage;
    }
    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }
    public static void cast(CommonError error){
        throw new XueChengPlusException(error.getErrMessage());
    }
}